package io.xxx.xbutler.sdk;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

@Data
public class TanJingResponse {

    @JSONField(alternateNames = {"code", "nResult"})
    private Integer code;

    @JSONField(alternateNames = {"result", "vcResult"})
    private String message;

    @JSONField(alternateNames = {"serial_no", "vcSerialNo"})
    private String serialNo;

    public boolean isSuccess() {
        return code == 1;
    }
}
